home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / wbtsr14k.zip / MENU.BAT < prev    next >
DOS Batch File  |  1992-11-28  |  2KB  |  87 lines

  1. echo off
  2. :loop
  3. if not exist WBTSMENU.COM goto wrong
  4. WBTSMENU xx
  5. if errorlevel 10 goto quit
  6. if errorlevel 9  goto regis
  7. if errorlevel 8  goto further
  8. if errorlevel 7  goto runtsr
  9. if errorlevel 6  goto wbp
  10. if errorlevel 5  goto viewer
  11. if errorlevel 4  goto filer2
  12. if errorlevel 3  goto filer1
  13. if errorlevel 2  goto skel
  14. if errorlevel 1  goto intro
  15. goto wrong
  16. rem -----------------------
  17. :regis
  18. cls
  19. chapter9  x
  20. if errorlevel 1 goto quit
  21. goto loop
  22. rem -----------------------
  23. :further
  24. cls
  25. chapter8  x
  26. if errorlevel 1 goto quit
  27. goto loop
  28. rem -----------------------
  29. :runtsr
  30. cls
  31. chapter7  x
  32. if errorlevel 1 goto quit
  33. goto loop
  34. rem -----------------------
  35. :wbp
  36. cls
  37. wbp       x
  38. if errorlevel 1 goto quit
  39. goto loop
  40. rem -----------------------
  41. :viewer
  42. cls
  43. chapter5  x
  44. if errorlevel 1 goto quit
  45. goto loop
  46. rem -----------------------
  47. :filer2
  48. cls
  49. chapter4  x
  50. if errorlevel 1 goto quit
  51. goto loop
  52. rem -----------------------
  53. :filer1
  54. cls
  55. chapter3  x
  56. if errorlevel 1 goto quit
  57. goto loop
  58. rem ----------------------- menu1
  59. :skel
  60. cls
  61. chapter2  x
  62. if errorlevel 1 goto quit
  63. goto loop
  64. rem -----------------------
  65. :intro
  66. cls
  67. chapter1  x
  68. if errorlevel 1 goto quit
  69. goto loop
  70. rem -----------------------
  71. :wrong
  72. echo  *****************************************************************
  73. echo  **** The required file WBTSMENU.COM is not in this directory. ***
  74. echo  **** At this stage all the files distributed                  ***
  75. echo  **** with World Best TSR must be in the current directory.    ***
  76. echo  **** You probably need to change to the directory where the   ***
  77. echo  **** files are (See your DOS instruction manual for an        ***
  78. echo  **** explanation of the CHDIR command.). Check that all the   ***
  79. echo  **** files listed in the file PACKING.LST are present.        ***
  80. echo  *****************************************************************
  81. goto  exit
  82. rem -----------------------
  83. :quit
  84. cls
  85. :exit
  86. echo off
  87.